﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using JM.JCY.BusinessEntity;
using JM.JCY.Proxy;
using NCS.IConnect.ApplicationContexts;
using JM.JCY.Common;
using JM.JCY.Common.Utilities;
using Microsoft.SharePoint;

namespace JM.JCY.SharePointComponent.IncorruptArchives.LianZhengLianJieCheckView
{
    public partial class LianZhengLianJieCheckViewUserControl : UserControl
    {
        public int _caseId
        {
            set { ViewState["_caseId"] = value; }
            get { return (int)ViewState["_caseId"]; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                using (IncorruptProxy proxy = new IncorruptProxy())
                {
                    if (Request.QueryString["CaseId"] != null)
                    {
                        _caseId = Int32.Parse(Request.QueryString["CaseId"].ToString());
                    }
                    // load data
                    var loadDT = proxy.GetLianZhengLianJieCheck(_caseId, string.Empty);
                    LoadForEdit(loadDT);
                    LoadForView(loadDT);
                }

            }

            // switch controls
            if (this.hfIsEdit.Value != "1")
                SwitchControls(true, false);
            else
                SwitchControls(false, true);
        }

        private void SwitchControls(bool isLabelsShow, bool isControlsShow)
        {
            //labels
            this.lblOption1_1.Visible = isLabelsShow;
            this.lblOption1_2.Visible = isLabelsShow;
            this.lblOption1_3.Visible = isLabelsShow;
            this.lblOption1_4.Visible = isLabelsShow;
            this.lblOption1_5.Visible = isLabelsShow;
            this.lblOption1_6.Visible = isLabelsShow;
            this.lblOption1_7.Visible = isLabelsShow;
            this.lblOption1_8.Visible = isLabelsShow;
            this.lblOption1_9.Visible = isLabelsShow;
            this.lblOption1_10.Visible = isLabelsShow;
            this.lblOption1_11.Visible = isLabelsShow;
            this.lblOption1_12.Visible = isLabelsShow;
            this.lblOption1_13.Visible = isLabelsShow;
            this.lblOption1_14.Visible = isLabelsShow;
            this.lblOption1_15.Visible = isLabelsShow;
            this.lblOption1_16.Visible = isLabelsShow;
            this.lblOption1_17.Visible = isLabelsShow;
            this.lblOption1_18.Visible = isLabelsShow;
            this.lblOption1_19.Visible = isLabelsShow;
            this.lblOption1_20.Visible = isLabelsShow;
            this.lblOption1_21.Visible = isLabelsShow;
            this.lblOption1_22.Visible = isLabelsShow;
            this.lblOption1_23.Visible = isLabelsShow;
            this.lblOption1_24.Visible = isLabelsShow;
            this.lblOption1_25.Visible = isLabelsShow;
            this.lblOption1_26.Visible = isLabelsShow;
            this.lblOption1_27.Visible = isLabelsShow;
            this.lblOption1_28.Visible = isLabelsShow;
            this.lblOption1_29.Visible = isLabelsShow;
            this.lblOption1_30.Visible = isLabelsShow;
            this.lblOption1_31.Visible = isLabelsShow;
            this.lblOption1_32.Visible = isLabelsShow;
            this.lblOption1_33.Visible = isLabelsShow;
            this.lblOption1_34.Visible = isLabelsShow;
            this.lblOption1_35.Visible = isLabelsShow;
            this.lblOption1_36.Visible = isLabelsShow;
            this.lblOption1_37.Visible = isLabelsShow;
            this.lblOption1_38.Visible = isLabelsShow;
            this.lblOption1_39.Visible = isLabelsShow;
            this.lblOption1_40.Visible = isLabelsShow;
            this.lblOption1_41.Visible = isLabelsShow;
            this.lblOption1_42.Visible = isLabelsShow;
            this.lblOption1_43.Visible = isLabelsShow;
            this.lblOption1_44.Visible = isLabelsShow;
            this.lblOption1_45.Visible = isLabelsShow;
            this.lblOption1_46.Visible = isLabelsShow;
            this.lblOption1_47.Visible = isLabelsShow;
            this.lblOption1_48.Visible = isLabelsShow;
            this.lblOption1_49.Visible = isLabelsShow;
            this.lblOption1_50.Visible = isLabelsShow;
            this.lblOption1_51.Visible = isLabelsShow;
            this.lblOption1_52.Visible = isLabelsShow;

            this.lblOption2_1.Visible = isLabelsShow;
            this.lblOption2_2.Visible = isLabelsShow;
            this.lblOption2_3.Visible = isLabelsShow;
            this.lblOption2_4.Visible = isLabelsShow;
            this.lblOption2_5.Visible = isLabelsShow;
            this.lblOption2_6.Visible = isLabelsShow;
            this.lblOption2_7.Visible = isLabelsShow;
            this.lblOption2_8.Visible = isLabelsShow;
            this.lblOption2_9.Visible = isLabelsShow;
            this.lblOption2_10.Visible = isLabelsShow;
            this.lblOption2_11.Visible = isLabelsShow;
            this.lblOption2_12.Visible = isLabelsShow;
            this.lblOption2_13.Visible = isLabelsShow;
            this.lblOption2_14.Visible = isLabelsShow;
            this.lblOption2_15.Visible = isLabelsShow;
            this.lblOption2_16.Visible = isLabelsShow;
            this.lblOption2_17.Visible = isLabelsShow;
            this.lblOption2_18.Visible = isLabelsShow;
            this.lblOption2_19.Visible = isLabelsShow;
            this.lblOption2_20.Visible = isLabelsShow;
            this.lblOption2_21.Visible = isLabelsShow;
            this.lblOption2_22.Visible = isLabelsShow;
            this.lblOption2_23.Visible = isLabelsShow;
            this.lblOption2_24.Visible = isLabelsShow;
            this.lblOption2_25.Visible = isLabelsShow;
            this.lblOption2_26.Visible = isLabelsShow;
            this.lblOption2_27.Visible = isLabelsShow;
            this.lblOption2_28.Visible = isLabelsShow;
            this.lblOption2_29.Visible = isLabelsShow;
            this.lblOption2_30.Visible = isLabelsShow;
            this.lblOption2_31.Visible = isLabelsShow;
            this.lblOption2_32.Visible = isLabelsShow;
            this.lblOption2_33.Visible = isLabelsShow;
            this.lblOption2_34.Visible = isLabelsShow;
            this.lblOption2_35.Visible = isLabelsShow;
            this.lblOption2_36.Visible = isLabelsShow;
            this.lblOption2_37.Visible = isLabelsShow;
            this.lblOption2_38.Visible = isLabelsShow;
            this.lblOption2_39.Visible = isLabelsShow;
            this.lblOption2_40.Visible = isLabelsShow;
            this.lblOption2_41.Visible = isLabelsShow;
            this.lblOption2_42.Visible = isLabelsShow;
            this.lblOption2_43.Visible = isLabelsShow;
            this.lblOption2_44.Visible = isLabelsShow;
            this.lblOption2_45.Visible = isLabelsShow;
            this.lblOption2_46.Visible = isLabelsShow;
            this.lblOption2_47.Visible = isLabelsShow;
            this.lblOption2_48.Visible = isLabelsShow;
            this.lblOption2_49.Visible = isLabelsShow;
            this.lblOption2_50.Visible = isLabelsShow;
            this.lblOption2_51.Visible = isLabelsShow;
            this.lblOption2_52.Visible = isLabelsShow;
            this.lblOption2_53.Visible = isLabelsShow;
            this.lblOption2_54.Visible = isLabelsShow;
            this.lblOption2_55.Visible = isLabelsShow;
            this.lblOption2_56.Visible = isLabelsShow;
            this.lblOption2_57.Visible = isLabelsShow;
            this.lblOption2_58.Visible = isLabelsShow;
            this.lblOption2_59.Visible = isLabelsShow;
            this.lblOption2_60.Visible = isLabelsShow;

            this.lblRemark2_1.Visible = isLabelsShow;
            this.lblRemark2_2.Visible = isLabelsShow;
            this.lblRemark2_3.Visible = isLabelsShow;
            this.lblRemark2_4.Visible = isLabelsShow;
            this.lblRemark2_5.Visible = isLabelsShow;
            this.lblRemark2_6.Visible = isLabelsShow;
            this.lblRemark2_7.Visible = isLabelsShow;
            this.lblRemark2_8.Visible = isLabelsShow;
            this.lblRemark2_9.Visible = isLabelsShow;
            this.lblRemark2_10.Visible = isLabelsShow;
            this.lblRemark2_11.Visible = isLabelsShow;
            this.lblRemark2_12.Visible = isLabelsShow;
            this.lblRemark2_13.Visible = isLabelsShow;
            this.lblRemark2_14.Visible = isLabelsShow;
            this.lblRemark2_15.Visible = isLabelsShow;
            this.lblRemark2_16.Visible = isLabelsShow;
            this.lblRemark2_17.Visible = isLabelsShow;
            this.lblRemark2_18.Visible = isLabelsShow;
            this.lblRemark2_19.Visible = isLabelsShow;
            this.lblRemark2_20.Visible = isLabelsShow;
            this.lblRemark2_21.Visible = isLabelsShow;
            this.lblRemark2_22.Visible = isLabelsShow;
            this.lblRemark2_23.Visible = isLabelsShow;
            this.lblRemark2_24.Visible = isLabelsShow;
            this.lblRemark2_25.Visible = isLabelsShow;
            this.lblRemark2_26.Visible = isLabelsShow;
            this.lblRemark2_27.Visible = isLabelsShow;
            this.lblRemark2_28.Visible = isLabelsShow;
            this.lblRemark2_29.Visible = isLabelsShow;
            this.lblRemark2_30.Visible = isLabelsShow;
            this.lblRemark2_31.Visible = isLabelsShow;
            this.lblRemark2_32.Visible = isLabelsShow;
            this.lblRemark2_33.Visible = isLabelsShow;
            this.lblRemark2_34.Visible = isLabelsShow;
            this.lblRemark2_35.Visible = isLabelsShow;
            this.lblRemark2_36.Visible = isLabelsShow;
            this.lblRemark2_37.Visible = isLabelsShow;
            this.lblRemark2_38.Visible = isLabelsShow;
            this.lblRemark2_39.Visible = isLabelsShow;
            this.lblRemark2_40.Visible = isLabelsShow;
            this.lblRemark2_41.Visible = isLabelsShow;
            this.lblRemark2_42.Visible = isLabelsShow;
            this.lblRemark2_43.Visible = isLabelsShow;
            this.lblRemark2_44.Visible = isLabelsShow;
            this.lblRemark2_45.Visible = isLabelsShow;
            this.lblRemark2_46.Visible = isLabelsShow;
            this.lblRemark2_47.Visible = isLabelsShow;
            this.lblRemark2_48.Visible = isLabelsShow;
            this.lblRemark2_49.Visible = isLabelsShow;
            this.lblRemark2_50.Visible = isLabelsShow;
            this.lblRemark2_51.Visible = isLabelsShow;
            this.lblRemark2_52.Visible = isLabelsShow;
            this.lblRemark2_53.Visible = isLabelsShow;
            this.lblRemark2_54.Visible = isLabelsShow;
            this.lblRemark2_55.Visible = isLabelsShow;
            this.lblRemark2_56.Visible = isLabelsShow;
            this.lblRemark2_57.Visible = isLabelsShow;
            this.lblRemark2_58.Visible = isLabelsShow;
            this.lblRemark2_59.Visible = isLabelsShow;
            this.lblRemark2_60.Visible = isLabelsShow;

            this.lblSignBy.Visible = isLabelsShow;
            this.lblSignDate.Visible = isLabelsShow;

            // controls
            this.rbOption1_1.Visible = isControlsShow;
            this.rbOption1_2.Visible = isControlsShow;
            this.rbOption1_3.Visible = isControlsShow;
            this.rbOption1_4.Visible = isControlsShow;
            this.rbOption1_5.Visible = isControlsShow;
            this.rbOption1_6.Visible = isControlsShow;
            this.rbOption1_7.Visible = isControlsShow;
            this.rbOption1_8.Visible = isControlsShow;
            this.rbOption1_9.Visible = isControlsShow;
            this.rbOption1_10.Visible = isControlsShow;
            this.rbOption1_11.Visible = isControlsShow;
            this.rbOption1_12.Visible = isControlsShow;
            this.rbOption1_13.Visible = isControlsShow;
            this.rbOption1_14.Visible = isControlsShow;
            this.rbOption1_15.Visible = isControlsShow;
            this.rbOption1_16.Visible = isControlsShow;
            this.rbOption1_17.Visible = isControlsShow;
            this.rbOption1_18.Visible = isControlsShow;
            this.rbOption1_19.Visible = isControlsShow;
            this.rbOption1_20.Visible = isControlsShow;
            this.rbOption1_21.Visible = isControlsShow;
            this.rbOption1_22.Visible = isControlsShow;
            this.rbOption1_23.Visible = isControlsShow;
            this.rbOption1_24.Visible = isControlsShow;
            this.rbOption1_25.Visible = isControlsShow;
            this.rbOption1_26.Visible = isControlsShow;
            this.rbOption1_27.Visible = isControlsShow;
            this.rbOption1_28.Visible = isControlsShow;
            this.rbOption1_29.Visible = isControlsShow;
            this.rbOption1_30.Visible = isControlsShow;
            this.rbOption1_31.Visible = isControlsShow;
            this.rbOption1_32.Visible = isControlsShow;
            this.rbOption1_33.Visible = isControlsShow;
            this.rbOption1_34.Visible = isControlsShow;
            this.rbOption1_35.Visible = isControlsShow;
            this.rbOption1_36.Visible = isControlsShow;
            this.rbOption1_37.Visible = isControlsShow;
            this.rbOption1_38.Visible = isControlsShow;
            this.rbOption1_39.Visible = isControlsShow;
            this.rbOption1_40.Visible = isControlsShow;
            this.rbOption1_41.Visible = isControlsShow;
            this.rbOption1_42.Visible = isControlsShow;
            this.rbOption1_43.Visible = isControlsShow;
            this.rbOption1_44.Visible = isControlsShow;
            this.rbOption1_45.Visible = isControlsShow;
            this.rbOption1_46.Visible = isControlsShow;
            this.rbOption1_47.Visible = isControlsShow;
            this.rbOption1_48.Visible = isControlsShow;
            this.rbOption1_49.Visible = isControlsShow;
            this.rbOption1_50.Visible = isControlsShow;
            this.rbOption1_51.Visible = isControlsShow;
            this.rbOption1_52.Visible = isControlsShow;

            this.rbOption2_1.Visible = isControlsShow;
            this.rbOption2_2.Visible = isControlsShow;
            this.rbOption2_3.Visible = isControlsShow;
            this.rbOption2_4.Visible = isControlsShow;
            this.rbOption2_5.Visible = isControlsShow;
            this.rbOption2_6.Visible = isControlsShow;
            this.rbOption2_7.Visible = isControlsShow;
            this.rbOption2_8.Visible = isControlsShow;
            this.rbOption2_9.Visible = isControlsShow;
            this.rbOption2_10.Visible = isControlsShow;
            this.rbOption2_11.Visible = isControlsShow;
            this.rbOption2_12.Visible = isControlsShow;
            this.rbOption2_13.Visible = isControlsShow;
            this.rbOption2_14.Visible = isControlsShow;
            this.rbOption2_15.Visible = isControlsShow;
            this.rbOption2_16.Visible = isControlsShow;
            this.rbOption2_17.Visible = isControlsShow;
            this.rbOption2_18.Visible = isControlsShow;
            this.rbOption2_19.Visible = isControlsShow;
            this.rbOption2_20.Visible = isControlsShow;
            this.rbOption2_21.Visible = isControlsShow;
            this.rbOption2_22.Visible = isControlsShow;
            this.rbOption2_23.Visible = isControlsShow;
            this.rbOption2_24.Visible = isControlsShow;
            this.rbOption2_25.Visible = isControlsShow;
            this.rbOption2_26.Visible = isControlsShow;
            this.rbOption2_27.Visible = isControlsShow;
            this.rbOption2_28.Visible = isControlsShow;
            this.rbOption2_29.Visible = isControlsShow;
            this.rbOption2_30.Visible = isControlsShow;
            this.rbOption2_31.Visible = isControlsShow;
            this.rbOption2_32.Visible = isControlsShow;
            this.rbOption2_33.Visible = isControlsShow;
            this.rbOption2_34.Visible = isControlsShow;
            this.rbOption2_35.Visible = isControlsShow;
            this.rbOption2_36.Visible = isControlsShow;
            this.rbOption2_37.Visible = isControlsShow;
            this.rbOption2_38.Visible = isControlsShow;
            this.rbOption2_39.Visible = isControlsShow;
            this.rbOption2_40.Visible = isControlsShow;
            this.rbOption2_41.Visible = isControlsShow;
            this.rbOption2_42.Visible = isControlsShow;
            this.rbOption2_43.Visible = isControlsShow;
            this.rbOption2_44.Visible = isControlsShow;
            this.rbOption2_45.Visible = isControlsShow;
            this.rbOption2_46.Visible = isControlsShow;
            this.rbOption2_47.Visible = isControlsShow;
            this.rbOption2_48.Visible = isControlsShow;
            this.rbOption2_49.Visible = isControlsShow;
            this.rbOption2_50.Visible = isControlsShow;
            this.rbOption2_51.Visible = isControlsShow;
            this.rbOption2_52.Visible = isControlsShow;
            this.rbOption2_53.Visible = isControlsShow;
            this.rbOption2_54.Visible = isControlsShow;
            this.rbOption2_55.Visible = isControlsShow;
            this.rbOption2_56.Visible = isControlsShow;
            this.rbOption2_57.Visible = isControlsShow;
            this.rbOption2_58.Visible = isControlsShow;
            this.rbOption2_59.Visible = isControlsShow;
            this.rbOption2_60.Visible = isControlsShow;

            this.txtRemark2_1.Visible = isControlsShow;
            this.txtRemark2_2.Visible = isControlsShow;
            this.txtRemark2_3.Visible = isControlsShow;
            this.txtRemark2_4.Visible = isControlsShow;
            this.txtRemark2_5.Visible = isControlsShow;
            this.txtRemark2_6.Visible = isControlsShow;
            this.txtRemark2_7.Visible = isControlsShow;
            this.txtRemark2_8.Visible = isControlsShow;
            this.txtRemark2_9.Visible = isControlsShow;
            this.txtRemark2_10.Visible = isControlsShow;
            this.txtRemark2_11.Visible = isControlsShow;
            this.txtRemark2_12.Visible = isControlsShow;
            this.txtRemark2_13.Visible = isControlsShow;
            this.txtRemark2_14.Visible = isControlsShow;
            this.txtRemark2_15.Visible = isControlsShow;
            this.txtRemark2_16.Visible = isControlsShow;
            this.txtRemark2_17.Visible = isControlsShow;
            this.txtRemark2_18.Visible = isControlsShow;
            this.txtRemark2_19.Visible = isControlsShow;
            this.txtRemark2_20.Visible = isControlsShow;
            this.txtRemark2_21.Visible = isControlsShow;
            this.txtRemark2_22.Visible = isControlsShow;
            this.txtRemark2_23.Visible = isControlsShow;
            this.txtRemark2_24.Visible = isControlsShow;
            this.txtRemark2_25.Visible = isControlsShow;
            this.txtRemark2_26.Visible = isControlsShow;
            this.txtRemark2_27.Visible = isControlsShow;
            this.txtRemark2_28.Visible = isControlsShow;
            this.txtRemark2_29.Visible = isControlsShow;
            this.txtRemark2_30.Visible = isControlsShow;
            this.txtRemark2_31.Visible = isControlsShow;
            this.txtRemark2_32.Visible = isControlsShow;
            this.txtRemark2_33.Visible = isControlsShow;
            this.txtRemark2_34.Visible = isControlsShow;
            this.txtRemark2_35.Visible = isControlsShow;
            this.txtRemark2_36.Visible = isControlsShow;
            this.txtRemark2_37.Visible = isControlsShow;
            this.txtRemark2_38.Visible = isControlsShow;
            this.txtRemark2_39.Visible = isControlsShow;
            this.txtRemark2_40.Visible = isControlsShow;
            this.txtRemark2_41.Visible = isControlsShow;
            this.txtRemark2_42.Visible = isControlsShow;
            this.txtRemark2_43.Visible = isControlsShow;
            this.txtRemark2_44.Visible = isControlsShow;
            this.txtRemark2_45.Visible = isControlsShow;
            this.txtRemark2_46.Visible = isControlsShow;
            this.txtRemark2_47.Visible = isControlsShow;
            this.txtRemark2_48.Visible = isControlsShow;
            this.txtRemark2_49.Visible = isControlsShow;
            this.txtRemark2_50.Visible = isControlsShow;
            this.txtRemark2_51.Visible = isControlsShow;
            this.txtRemark2_52.Visible = isControlsShow;
            this.txtRemark2_53.Visible = isControlsShow;
            this.txtRemark2_54.Visible = isControlsShow;
            this.txtRemark2_55.Visible = isControlsShow;
            this.txtRemark2_56.Visible = isControlsShow;
            this.txtRemark2_57.Visible = isControlsShow;
            this.txtRemark2_58.Visible = isControlsShow;
            this.txtRemark2_59.Visible = isControlsShow;
            this.txtRemark2_60.Visible = isControlsShow;

            this.txtSignBy.Visible = isControlsShow;
            this.dtSignDate.Visible = isControlsShow;

            this.hr4.Visible = isControlsShow;

        }

        private void LoadForView(IncorruptDataSet.T_LianZhengLianjieCheckDataTable loadDT)
        {
            var loadRow = loadDT[0];

            //廉洁从政项目
            this.lblOption1_1.Text = loadRow.Option1_1;
            this.lblOption1_2.Text = loadRow.Option1_2;
            this.lblOption1_3.Text = loadRow.Option1_3;
            this.lblOption1_4.Text = loadRow.Option1_4;
            this.lblOption1_5.Text = loadRow.Option1_5;
            this.lblOption1_6.Text = loadRow.Option1_6;
            this.lblOption1_7.Text = loadRow.Option1_7;
            this.lblOption1_8.Text = loadRow.Option1_8;
            this.lblOption1_9.Text = loadRow.Option1_9;
            this.lblOption1_10.Text = loadRow.Option1_10;
            this.lblOption1_11.Text = loadRow.Option1_11;
            this.lblOption1_12.Text = loadRow.Option1_12;
            this.lblOption1_13.Text = loadRow.Option1_13;
            this.lblOption1_14.Text = loadRow.Option1_14;
            this.lblOption1_15.Text = loadRow.Option1_15;
            this.lblOption1_16.Text = loadRow.Option1_16;
            this.lblOption1_17.Text = loadRow.Option1_17;
            this.lblOption1_18.Text = loadRow.Option1_18;
            this.lblOption1_19.Text = loadRow.Option1_19;
            this.lblOption1_20.Text = loadRow.Option1_20;
            this.lblOption1_21.Text = loadRow.Option1_21;
            this.lblOption1_22.Text = loadRow.Option1_22;
            this.lblOption1_23.Text = loadRow.Option1_23;
            this.lblOption1_24.Text = loadRow.Option1_24;
            this.lblOption1_25.Text = loadRow.Option1_25;
            this.lblOption1_26.Text = loadRow.Option1_26;
            this.lblOption1_27.Text = loadRow.Option1_27;
            this.lblOption1_28.Text = loadRow.Option1_29;
            this.lblOption1_30.Text = loadRow.Option1_30;
            this.lblOption1_31.Text = loadRow.Option1_31;
            this.lblOption1_32.Text = loadRow.Option1_32;
            this.lblOption1_33.Text = loadRow.Option1_33;
            this.lblOption1_34.Text = loadRow.Option1_34;
            this.lblOption1_35.Text = loadRow.Option1_35;
            this.lblOption1_36.Text = loadRow.Option1_36;
            this.lblOption1_37.Text = loadRow.Option1_37;
            this.lblOption1_38.Text = loadRow.Option1_38;
            this.lblOption1_39.Text = loadRow.Option1_39;
            this.lblOption1_40.Text = loadRow.Option1_40;
            this.lblOption1_41.Text = loadRow.Option1_41;
            this.lblOption1_42.Text = loadRow.Option1_42;
            this.lblOption1_43.Text = loadRow.Option1_43;
            this.lblOption1_44.Text = loadRow.Option1_44;
            this.lblOption1_45.Text = loadRow.Option1_45;
            this.lblOption1_46.Text = loadRow.Option1_46;
            this.lblOption1_47.Text = loadRow.Option1_47;
            this.lblOption1_48.Text = loadRow.Option1_48;
            this.lblOption1_49.Text = loadRow.Option1_49;
            this.lblOption1_50.Text = loadRow.Option1_50;
            this.lblOption1_51.Text = loadRow.Option1_51;
            this.lblOption1_52.Text = loadRow.Option1_52;

            //廉洁从检项目
            this.lblOption2_1.Text = loadRow.Option2_1;
            this.lblOption2_2.Text = loadRow.Option2_2;
            this.lblOption2_3.Text = loadRow.Option2_3;
            this.lblOption2_4.Text = loadRow.Option2_4;
            this.lblOption2_5.Text = loadRow.Option2_5;
            this.lblOption2_6.Text = loadRow.Option2_6;
            this.lblOption2_7.Text = loadRow.Option2_7;
            this.lblOption2_8.Text = loadRow.Option2_8;
            this.lblOption2_9.Text = loadRow.Option2_9;
            this.lblOption2_10.Text = loadRow.Option2_10;
            this.lblOption2_11.Text = loadRow.Option2_11;
            this.lblOption2_12.Text = loadRow.Option2_12;
            this.lblOption2_13.Text = loadRow.Option2_13;
            this.lblOption2_14.Text = loadRow.Option2_14;
            this.lblOption2_15.Text = loadRow.Option2_15;
            this.lblOption2_16.Text = loadRow.Option2_16;
            this.lblOption2_17.Text = loadRow.Option2_17;
            this.lblOption2_18.Text = loadRow.Option2_18;
            this.lblOption2_19.Text = loadRow.Option2_19;
            this.lblOption2_20.Text = loadRow.Option2_20;
            this.lblOption2_21.Text = loadRow.Option2_21;
            this.lblOption2_22.Text = loadRow.Option2_22;
            this.lblOption2_23.Text = loadRow.Option2_23;
            this.lblOption2_24.Text = loadRow.Option2_24;
            this.lblOption2_25.Text = loadRow.Option2_25;
            this.lblOption2_26.Text = loadRow.Option2_26;
            this.lblOption2_27.Text = loadRow.Option2_27;
            this.lblOption2_28.Text = loadRow.Option2_29;
            this.lblOption2_30.Text = loadRow.Option2_30;
            this.lblOption2_31.Text = loadRow.Option2_31;
            this.lblOption2_32.Text = loadRow.Option2_32;
            this.lblOption2_33.Text = loadRow.Option2_33;
            this.lblOption2_34.Text = loadRow.Option2_34;
            this.lblOption2_35.Text = loadRow.Option2_35;
            this.lblOption2_36.Text = loadRow.Option2_36;
            this.lblOption2_37.Text = loadRow.Option2_37;
            this.lblOption2_38.Text = loadRow.Option2_38;
            this.lblOption2_39.Text = loadRow.Option2_39;
            this.lblOption2_40.Text = loadRow.Option2_40;
            this.lblOption2_41.Text = loadRow.Option2_41;
            this.lblOption2_42.Text = loadRow.Option2_42;
            this.lblOption2_43.Text = loadRow.Option2_43;
            this.lblOption2_44.Text = loadRow.Option2_44;
            this.lblOption2_45.Text = loadRow.Option2_45;
            this.lblOption2_46.Text = loadRow.Option2_46;
            this.lblOption2_47.Text = loadRow.Option2_47;
            this.lblOption2_48.Text = loadRow.Option2_48;
            this.lblOption2_49.Text = loadRow.Option2_49;
            this.lblOption2_50.Text = loadRow.Option2_50;
            this.lblOption2_51.Text = loadRow.Option2_51;
            this.lblOption2_52.Text = loadRow.Option2_52;
            this.lblOption2_53.Text = loadRow.Option2_53;
            this.lblOption2_54.Text = loadRow.Option2_54;
            this.lblOption2_55.Text = loadRow.Option2_55;
            this.lblOption2_56.Text = loadRow.Option2_56;
            this.lblOption2_57.Text = loadRow.Option2_57;
            this.lblOption2_58.Text = loadRow.Option2_58;
            this.lblOption2_59.Text = loadRow.Option2_59;
            this.lblOption2_60.Text = loadRow.Option2_60;

            this.lblRemark2_1.Text = loadRow.Remark2_1;
            this.lblRemark2_2.Text = loadRow.Remark2_2;
            this.lblRemark2_3.Text = loadRow.Remark2_3;
            this.lblRemark2_4.Text = loadRow.Remark2_4;
            this.lblRemark2_5.Text = loadRow.Remark2_5;
            this.lblRemark2_6.Text = loadRow.Remark2_6;
            this.lblRemark2_7.Text = loadRow.Remark2_7;
            this.lblRemark2_8.Text = loadRow.Remark2_8;
            this.lblRemark2_9.Text = loadRow.Remark2_9;
            this.lblRemark2_10.Text = loadRow.Remark2_10;
            this.lblRemark2_11.Text = loadRow.Remark2_11;
            this.lblRemark2_12.Text = loadRow.Remark2_12;
            this.lblRemark2_13.Text = loadRow.Remark2_13;
            this.lblRemark2_14.Text = loadRow.Remark2_14;
            this.lblRemark2_15.Text = loadRow.Remark2_15;
            this.lblRemark2_16.Text = loadRow.Remark2_16;
            this.lblRemark2_17.Text = loadRow.Remark2_17;
            this.lblRemark2_18.Text = loadRow.Remark2_18;
            this.lblRemark2_19.Text = loadRow.Remark2_19;
            this.lblRemark2_20.Text = loadRow.Remark2_20;
            this.lblRemark2_21.Text = loadRow.Remark2_21;
            this.lblRemark2_22.Text = loadRow.Remark2_22;
            this.lblRemark2_23.Text = loadRow.Remark2_23;
            this.lblRemark2_24.Text = loadRow.Remark2_24;
            this.lblRemark2_25.Text = loadRow.Remark2_25;
            this.lblRemark2_26.Text = loadRow.Remark2_26;
            this.lblRemark2_27.Text = loadRow.Remark2_27;
            this.lblRemark2_28.Text = loadRow.Remark2_29;
            this.lblRemark2_30.Text = loadRow.Remark2_30;
            this.lblRemark2_31.Text = loadRow.Remark2_31;
            this.lblRemark2_32.Text = loadRow.Remark2_32;
            this.lblRemark2_33.Text = loadRow.Remark2_33;
            this.lblRemark2_34.Text = loadRow.Remark2_34;
            this.lblRemark2_35.Text = loadRow.Remark2_35;
            this.lblRemark2_36.Text = loadRow.Remark2_36;
            this.lblRemark2_37.Text = loadRow.Remark2_37;
            this.lblRemark2_38.Text = loadRow.Remark2_38;
            this.lblRemark2_39.Text = loadRow.Remark2_39;
            this.lblRemark2_40.Text = loadRow.Remark2_40;
            this.lblRemark2_41.Text = loadRow.Remark2_41;
            this.lblRemark2_42.Text = loadRow.Remark2_42;
            this.lblRemark2_43.Text = loadRow.Remark2_43;
            this.lblRemark2_44.Text = loadRow.Remark2_44;
            this.lblRemark2_45.Text = loadRow.Remark2_45;
            this.lblRemark2_46.Text = loadRow.Remark2_46;
            this.lblRemark2_47.Text = loadRow.Remark2_47;
            this.lblRemark2_48.Text = loadRow.Remark2_48;
            this.lblRemark2_49.Text = loadRow.Remark2_49;
            this.lblRemark2_50.Text = loadRow.Remark2_50;
            this.lblRemark2_51.Text = loadRow.Remark2_51;
            this.lblRemark2_52.Text = loadRow.Remark2_52;
            this.lblRemark2_53.Text = loadRow.Remark2_53;
            this.lblRemark2_54.Text = loadRow.Remark2_54;
            this.lblRemark2_55.Text = loadRow.Remark2_55;
            this.lblRemark2_56.Text = loadRow.Remark2_56;
            this.lblRemark2_57.Text = loadRow.Remark2_57;
            this.lblRemark2_58.Text = loadRow.Remark2_58;
            this.lblRemark2_59.Text = loadRow.Remark2_59;
            this.lblRemark2_60.Text = loadRow.Remark2_60;

            this.lblSignBy.Text = loadRow.SignBy;
            this.lblSignDate.Text = loadRow.SignDate.ToString(JCYConstant.Date_Format_CN);

        }

        private void LoadForEdit(IncorruptDataSet.T_LianZhengLianjieCheckDataTable loadDT)
        {
            var loadRow = loadDT[0];

            //廉洁从政项目
            this.rbOption1_1.SelectedValue = loadRow.Option1_1;
            this.rbOption1_2.SelectedValue = loadRow.Option1_2;
            this.rbOption1_3.SelectedValue = loadRow.Option1_3;
            this.rbOption1_4.SelectedValue = loadRow.Option1_4;
            this.rbOption1_5.SelectedValue = loadRow.Option1_5;
            this.rbOption1_6.SelectedValue = loadRow.Option1_6;
            this.rbOption1_7.SelectedValue = loadRow.Option1_7;
            this.rbOption1_8.SelectedValue = loadRow.Option1_8;
            this.rbOption1_9.SelectedValue = loadRow.Option1_9;
            this.rbOption1_10.SelectedValue = loadRow.Option1_10;
            this.rbOption1_11.SelectedValue = loadRow.Option1_11;
            this.rbOption1_12.SelectedValue = loadRow.Option1_12;
            this.rbOption1_13.SelectedValue = loadRow.Option1_13;
            this.rbOption1_14.SelectedValue = loadRow.Option1_14;
            this.rbOption1_15.SelectedValue = loadRow.Option1_15;
            this.rbOption1_16.SelectedValue = loadRow.Option1_16;
            this.rbOption1_17.SelectedValue = loadRow.Option1_17;
            this.rbOption1_18.SelectedValue = loadRow.Option1_18;
            this.rbOption1_19.SelectedValue = loadRow.Option1_19;
            this.rbOption1_20.SelectedValue = loadRow.Option1_20;
            this.rbOption1_21.SelectedValue = loadRow.Option1_21;
            this.rbOption1_22.SelectedValue = loadRow.Option1_22;
            this.rbOption1_23.SelectedValue = loadRow.Option1_23;
            this.rbOption1_24.SelectedValue = loadRow.Option1_24;
            this.rbOption1_25.SelectedValue = loadRow.Option1_25;
            this.rbOption1_26.SelectedValue = loadRow.Option1_26;
            this.rbOption1_27.SelectedValue = loadRow.Option1_27;
            this.rbOption1_28.SelectedValue = loadRow.Option1_29;
            this.rbOption1_30.SelectedValue = loadRow.Option1_30;
            this.rbOption1_31.SelectedValue = loadRow.Option1_31;
            this.rbOption1_32.SelectedValue = loadRow.Option1_32;
            this.rbOption1_33.SelectedValue = loadRow.Option1_33;
            this.rbOption1_34.SelectedValue = loadRow.Option1_34;
            this.rbOption1_35.SelectedValue = loadRow.Option1_35;
            this.rbOption1_36.SelectedValue = loadRow.Option1_36;
            this.rbOption1_37.SelectedValue = loadRow.Option1_37;
            this.rbOption1_38.SelectedValue = loadRow.Option1_38;
            this.rbOption1_39.SelectedValue = loadRow.Option1_39;
            this.rbOption1_40.SelectedValue = loadRow.Option1_40;
            this.rbOption1_41.SelectedValue = loadRow.Option1_41;
            this.rbOption1_42.SelectedValue = loadRow.Option1_42;
            this.rbOption1_43.SelectedValue = loadRow.Option1_43;
            this.rbOption1_44.SelectedValue = loadRow.Option1_44;
            this.rbOption1_45.SelectedValue = loadRow.Option1_45;
            this.rbOption1_46.SelectedValue = loadRow.Option1_46;
            this.rbOption1_47.SelectedValue = loadRow.Option1_47;
            this.rbOption1_48.SelectedValue = loadRow.Option1_48;
            this.rbOption1_49.SelectedValue = loadRow.Option1_49;
            this.rbOption1_50.SelectedValue = loadRow.Option1_50;
            this.rbOption1_51.SelectedValue = loadRow.Option1_51;
            this.rbOption1_52.SelectedValue = loadRow.Option1_52;

            //廉洁从检项目
            this.rbOption2_1.SelectedValue = loadRow.Option2_1;
            this.rbOption2_2.SelectedValue = loadRow.Option2_2;
            this.rbOption2_3.SelectedValue = loadRow.Option2_3;
            this.rbOption2_4.SelectedValue = loadRow.Option2_4;
            this.rbOption2_5.SelectedValue = loadRow.Option2_5;
            this.rbOption2_6.SelectedValue = loadRow.Option2_6;
            this.rbOption2_7.SelectedValue = loadRow.Option2_7;
            this.rbOption2_8.SelectedValue = loadRow.Option2_8;
            this.rbOption2_9.SelectedValue = loadRow.Option2_9;
            this.rbOption2_10.SelectedValue = loadRow.Option2_10;
            this.rbOption2_11.SelectedValue = loadRow.Option2_11;
            this.rbOption2_12.SelectedValue = loadRow.Option2_12;
            this.rbOption2_13.SelectedValue = loadRow.Option2_13;
            this.rbOption2_14.SelectedValue = loadRow.Option2_14;
            this.rbOption2_15.SelectedValue = loadRow.Option2_15;
            this.rbOption2_16.SelectedValue = loadRow.Option2_16;
            this.rbOption2_17.SelectedValue = loadRow.Option2_17;
            this.rbOption2_18.SelectedValue = loadRow.Option2_18;
            this.rbOption2_19.SelectedValue = loadRow.Option2_19;
            this.rbOption2_20.SelectedValue = loadRow.Option2_20;
            this.rbOption2_21.SelectedValue = loadRow.Option2_21;
            this.rbOption2_22.SelectedValue = loadRow.Option2_22;
            this.rbOption2_23.SelectedValue = loadRow.Option2_23;
            this.rbOption2_24.SelectedValue = loadRow.Option2_24;
            this.rbOption2_25.SelectedValue = loadRow.Option2_25;
            this.rbOption2_26.SelectedValue = loadRow.Option2_26;
            this.rbOption2_27.SelectedValue = loadRow.Option2_27;
            this.rbOption2_28.SelectedValue = loadRow.Option2_29;
            this.rbOption2_30.SelectedValue = loadRow.Option2_30;
            this.rbOption2_31.SelectedValue = loadRow.Option2_31;
            this.rbOption2_32.SelectedValue = loadRow.Option2_32;
            this.rbOption2_33.SelectedValue = loadRow.Option2_33;
            this.rbOption2_34.SelectedValue = loadRow.Option2_34;
            this.rbOption2_35.SelectedValue = loadRow.Option2_35;
            this.rbOption2_36.SelectedValue = loadRow.Option2_36;
            this.rbOption2_37.SelectedValue = loadRow.Option2_37;
            this.rbOption2_38.SelectedValue = loadRow.Option2_38;
            this.rbOption2_39.SelectedValue = loadRow.Option2_39;
            this.rbOption2_40.SelectedValue = loadRow.Option2_40;
            this.rbOption2_41.SelectedValue = loadRow.Option2_41;
            this.rbOption2_42.SelectedValue = loadRow.Option2_42;
            this.rbOption2_43.SelectedValue = loadRow.Option2_43;
            this.rbOption2_44.SelectedValue = loadRow.Option2_44;
            this.rbOption2_45.SelectedValue = loadRow.Option2_45;
            this.rbOption2_46.SelectedValue = loadRow.Option2_46;
            this.rbOption2_47.SelectedValue = loadRow.Option2_47;
            this.rbOption2_48.SelectedValue = loadRow.Option2_48;
            this.rbOption2_49.SelectedValue = loadRow.Option2_49;
            this.rbOption2_50.SelectedValue = loadRow.Option2_50;
            this.rbOption2_51.SelectedValue = loadRow.Option2_51;
            this.rbOption2_52.SelectedValue = loadRow.Option2_52;
            this.rbOption2_53.SelectedValue = loadRow.Option2_53;
            this.rbOption2_54.SelectedValue = loadRow.Option2_54;
            this.rbOption2_55.SelectedValue = loadRow.Option2_55;
            this.rbOption2_56.SelectedValue = loadRow.Option2_56;
            this.rbOption2_57.SelectedValue = loadRow.Option2_57;
            this.rbOption2_58.SelectedValue = loadRow.Option2_58;
            this.rbOption2_59.SelectedValue = loadRow.Option2_59;
            this.rbOption2_60.SelectedValue = loadRow.Option2_60;

            this.txtRemark2_1.Text = loadRow.Remark2_1;
            this.txtRemark2_2.Text = loadRow.Remark2_2;
            this.txtRemark2_3.Text = loadRow.Remark2_3;
            this.txtRemark2_4.Text = loadRow.Remark2_4;
            this.txtRemark2_5.Text = loadRow.Remark2_5;
            this.txtRemark2_6.Text = loadRow.Remark2_6;
            this.txtRemark2_7.Text = loadRow.Remark2_7;
            this.txtRemark2_8.Text = loadRow.Remark2_8;
            this.txtRemark2_9.Text = loadRow.Remark2_9;
            this.txtRemark2_10.Text = loadRow.Remark2_10;
            this.txtRemark2_11.Text = loadRow.Remark2_11;
            this.txtRemark2_12.Text = loadRow.Remark2_12;
            this.txtRemark2_13.Text = loadRow.Remark2_13;
            this.txtRemark2_14.Text = loadRow.Remark2_14;
            this.txtRemark2_15.Text = loadRow.Remark2_15;
            this.txtRemark2_16.Text = loadRow.Remark2_16;
            this.txtRemark2_17.Text = loadRow.Remark2_17;
            this.txtRemark2_18.Text = loadRow.Remark2_18;
            this.txtRemark2_19.Text = loadRow.Remark2_19;
            this.txtRemark2_20.Text = loadRow.Remark2_20;
            this.txtRemark2_21.Text = loadRow.Remark2_21;
            this.txtRemark2_22.Text = loadRow.Remark2_22;
            this.txtRemark2_23.Text = loadRow.Remark2_23;
            this.txtRemark2_24.Text = loadRow.Remark2_24;
            this.txtRemark2_25.Text = loadRow.Remark2_25;
            this.txtRemark2_26.Text = loadRow.Remark2_26;
            this.txtRemark2_27.Text = loadRow.Remark2_27;
            this.txtRemark2_28.Text = loadRow.Remark2_29;
            this.txtRemark2_30.Text = loadRow.Remark2_30;
            this.txtRemark2_31.Text = loadRow.Remark2_31;
            this.txtRemark2_32.Text = loadRow.Remark2_32;
            this.txtRemark2_33.Text = loadRow.Remark2_33;
            this.txtRemark2_34.Text = loadRow.Remark2_34;
            this.txtRemark2_35.Text = loadRow.Remark2_35;
            this.txtRemark2_36.Text = loadRow.Remark2_36;
            this.txtRemark2_37.Text = loadRow.Remark2_37;
            this.txtRemark2_38.Text = loadRow.Remark2_38;
            this.txtRemark2_39.Text = loadRow.Remark2_39;
            this.txtRemark2_40.Text = loadRow.Remark2_40;
            this.txtRemark2_41.Text = loadRow.Remark2_41;
            this.txtRemark2_42.Text = loadRow.Remark2_42;
            this.txtRemark2_43.Text = loadRow.Remark2_43;
            this.txtRemark2_44.Text = loadRow.Remark2_44;
            this.txtRemark2_45.Text = loadRow.Remark2_45;
            this.txtRemark2_46.Text = loadRow.Remark2_46;
            this.txtRemark2_47.Text = loadRow.Remark2_47;
            this.txtRemark2_48.Text = loadRow.Remark2_48;
            this.txtRemark2_49.Text = loadRow.Remark2_49;
            this.txtRemark2_50.Text = loadRow.Remark2_50;
            this.txtRemark2_51.Text = loadRow.Remark2_51;
            this.txtRemark2_52.Text = loadRow.Remark2_52;
            this.txtRemark2_53.Text = loadRow.Remark2_53;
            this.txtRemark2_54.Text = loadRow.Remark2_54;
            this.txtRemark2_55.Text = loadRow.Remark2_55;
            this.txtRemark2_56.Text = loadRow.Remark2_56;
            this.txtRemark2_57.Text = loadRow.Remark2_57;
            this.txtRemark2_58.Text = loadRow.Remark2_58;
            this.txtRemark2_59.Text = loadRow.Remark2_59;
            this.txtRemark2_60.Text = loadRow.Remark2_60;

            this.txtSignBy.Text = loadRow.SignBy;
            this.hfSignDate.Value = loadRow.SignDate.ToString();
        }
    }
}
